package com.xiyucode.yuerclientsdk;

import com.xiyucode.yuerclientsdk.client.YuerApiClient;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConfigurationProperties("yuer.client")
@Data
@ComponentScan
public class YuerApiClientConfig {

    private String accessKey;

    private String secretKey;

    @Bean
    public YuerApiClient yuerApiClient(){
        return new YuerApiClient(accessKey,secretKey);
    }

}








